import { request } from "@/utils/request.js";

/**
 * 按照type分页获取用户优惠券列表
 * @param type
 * @returns {*}
 */
export const getUserCouponInfoPageApi = data => {
    return request({
        url: `/ht-nonrealtime-gameservice/coupon/getUserCouponInfoPage`,
        method: 'POST',
        data:data
    })
}
/**
 * 获取当前优惠券的可赠送数量
 * @param type
 * @returns {*}
 */
export const getManagerCanGiftNumbeApi = id => {
    return request({
        url: `/ht-nonrealtime-gameservice/coupon/getManagerCanGiftNumbe?couponId=${id}`,
        method: 'GET',
    })
}
/**
 * 获取当前优惠券的可赠送数量
 * @param type
 * @returns {*}
 */
export const giftCouponApi = data => {
    return request({
        url: `/ht-nonrealtime-gameservice/coupon/giftCoupon`,
        method: 'POST',
        data:data
    })
}